'use strict';
exports.main = async (event, context) => {
	var WXBizDataCrypt = require('./WXBizDataCrypt')
	var appId = 'wx7c72ae2b24bd5ca2'
	
	var {encryptedData, iv, sessionKey} = event
	var pc = new WXBizDataCrypt(appId, sessionKey)
	var data = pc.decryptData(encryptedData , iv)
	
	return data
};
